/**
 * Copyright © 2022 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.hashmap;

import java.util.*;

/**
 *
 * @author xiay
 * @since 2022/2/26 2:17 下午
 */
public class HashSetTest {

    public static void main(String[] args) {
        List<Integer> list = new ArrayList<Integer>();
        list.add(123);
        list.add(456);
        Set<Integer> set = new HashSet<Integer>(list);

        HashMap<Integer, Integer> hashMap = new HashMap<>();
        hashMap.put(111,222);
        hashMap.put(222,333);
        hashMap.put(333,444);
        hashMap.put(7777,222);
        hashMap.put(6666,222);
        hashMap.forEach((k, v) -> {
            System.out.println("key:" + k + "----value:" + v);
        });


    }

}
